@charset "utf-8"; 
@import "../chameleon/oniui-theme";
@import "../chameleon/oniui-common";
$uiname : ".oni-fileuploader";

#{$uiname}-wrapper {
	position: relative;
    border: 1px solid #eee;
    text-align: center;
    background-color: #eaeaea;
    padding: 20px;
    @include border-radius(4px);

    .preview-stage {
        width: 100%;
        height: 400px;
        border-bottom: 1px dashed #aaa;
        margin-bottom: 20px;
        text-align: left;
        overflow-y: auto;
        font-size: 12px;
        *position: relative; /*IE6下滚动条有问题，加上Position修复*/
    }

    button {
        width: 168px;
        height: 44px;
        font-size: 18px;
        @include border-radius(2px);
        @include box-shadow(rgba(136,136,136,1) 2px 2px 5px);
        position: relative;
        margin: 0 5px;
        font-family: "Microsoft YaHei","Myriad Pro", "Hiragino Sans GB", Calibri, Helvetica, tahoma,arial,simsun, sans-serif;
    }

    button.uploader-button-add {
        background-color: #00b7ee;
        border: 1px solid #00b7ee;
        color: #eee;
    }
    button.uploader-button-add:hover {
        background-color: #00a2d4;
    }
    button.uploader-button-upload {
        background-color: white;
        border: 1px solid #999;
        color: #333;
    }
    button.uploader-button-upload:hover {
        background-color: white;
    }
    button.uploader-button-add object {
        position: absolute;
        top: 0px;
        left: 0px;
    }

    div.preview-image-wrapper {
        display:inline-block;
        _display: inline;
        _zoom: 1;
        margin: 5px;
        overflow:hidden;
        position: relative;
        border: 1px #aaa dashed;
        z-index: 0;
        overflow: hidden;
        .preview-progress-wrapper, div.preview-menu {
            color: white;
            height: 24px;
            line-height: 14px;
            background-color: #333;
            opacity: 0.8;
            filter:alpha(Opacity=80);
            text-align: left;
        }

        div.preview-menu div {
            white-space:nowrap;
            text-align: center;

            a.icon {
                position:absolute;
                left: 3px;
                top: 5px;
                text-decoration: none;
                cursor: pointer;
                color: white;
                font-size: 14px;
                width: 14px;
                height: 14px;
                display: inline-block;
                line-height: 14px;
            }
            span {
                position:absolute;
                left:18px;
                top:5px;
                right:3px;
                text-overflow: ellipsis;
                overflow: hidden;
            }
        }

        img {
            position: absolute;
            top: 0px;
            left: 0px;
            z-index:-1;
            width: 100%;
            height: 100%;
        }
        .preview-progress-wrapper {
            position: absolute;
            bottom: 0px;
            width: 100%;
        }
        .preview-progress-body {
            position: relative;
            height: 100%;
            @include border-radius(4px);
        }
        .progress-bar {
            position: absolute;
            top: 0px;
            left: 0px;
            height: 100%;
            background-color: #00b7ee;
            opacity: 1;
        }
        .message {
            position: absolute;
            top: 0px;
            left: 0px;
            line-height: 14px;
            height: 14px;
            display: inline-block;
            overflow: hidden;
            margin: 5px;
        }
    }

    .flash-wrapper {
        position:absolute;
        width:168px;
        height:44px;
        right:50%;
        display:inline-block;
        margin:0 5px 0 0;
    }
}